import request from "../utils/request";

export function registerApi(data) {
  return request({
    url: "/permission/register",
    method: "post",
    data,
  });
}

export function loginApi(data) {
  return request({
    url: "/permission/login",
    method: "post",
    data,
  });
}

export function updateApi(data) {
  return request({
    url: "/permission/update",
    method: "put",
    data,
  });
}

export function getUserList(params) {
  return request({
    url: "/permission/user",
    method: "get",
    params,
  });
}

export function getSystemInfo(params) {
  return request({
    url: "/permission/system/info",
    method: "get",
    params,
  });
}
